import React , { FC } from 'react';

const Input:FC<any> = (props) => {
  const { title, type, text } = props;
 return <>
  <div className="form-group">
    <label htmlFor="exampleInputEmail1">{title}</label>
    <input type={type} className="form-control" id="exampleInputEmail1"  />
    <small id="emailHelp" className="form-text text-muted">{text}</small>
  </div>
 </>
}

Input.defaultProps = {
  title: 'text文本测试',
  type: 'text',
  text: "'We'll never share your email with anyone else."
}



export default Input;
